package com.fuint.minio.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/9/20.
 */
public class UploadResult implements Serializable {

    /**
     * 请求状态代码
     */
    private String code;

    /**
     * 请求状态说明
     */
    private String message;

    /**
     * 请求响应数据
     */
    private String path;
    /**
     * 文件存储group
     */
    private String group;
    /**
     * 文件存储hash路径
     */
    private String filePath;
    /**
     * 文件存储hash全路径
     */
    private String fullPath;
    /**
     * 资源内网访问路径
     */
    private String innerPath;
    /**
     * 文件名
     */
    private String fileName;
    /**
     * 版本号
     */
    private String versionId;

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public boolean isSuccess() {
    	return "200".equals(code);
    }
    
    public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getFullPath() {
		return fullPath;
	}

	public void setFullPath(String fullPath) {
		this.fullPath = fullPath;
	}

	public String getInnerPath() {
		return innerPath;
	}

	public void setInnerPath(String innerPath) {
		this.innerPath = innerPath;
	}

	public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
